package com.neusmart.tongrentang.result;


import com.neusmart.tongrentang.constants.ResponseCode;

/**
 * Result
 * <p/>
 * roy
 */
public class Result {

    //
    private int status;
    //
    private String friendlyMessage;
    //
    private String message;
    //
    private String requestId;
    //
    private int appOwnerId;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getFriendlyMessage() {
        return friendlyMessage;
    }

    public void setFriendlyMessage(String friendlyMessage) {
        this.friendlyMessage = friendlyMessage;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public int getAppOwnerId() {
        return appOwnerId;
    }

    public void setAppOwnerId(int appOwnerId) {
        this.appOwnerId = appOwnerId;
    }

    public boolean isSuccess() {
        return status == ResponseCode.SUCCESS.getValue();
    }

    public boolean isAuthTokenInvalid() {
        return status == ResponseCode.ERROR_101007.getValue();
    }
}
